package ltu.thole;

import java.util.List;

import android.net.wifi.ScanResult;

public class WiFiRoughlyPosition implements Comparable<WiFiRoughlyPosition> {

	private List<ScanResult> results;
	
	public WiFiRoughlyPosition(List<ScanResult> results) {
		this.results = results;
	}
	
	public List<ScanResult> getResults() {
		return results;
	}
	
	public int size() {
		return results.size();
	}
	
	public int getSignalStrength(String macAddress) {
		for (int i = 0; i < results.size(); i++) {
			if (results.get(i).BSSID == macAddress) {
				return results.get(i).level;
			}
		}
		return 0;
	}
	
	@Override
	public int compareTo(WiFiRoughlyPosition another) {

		return 0;
	}

}
